package com.lagou.utils;

import java.util.Random;

public class RandomUtils {

    /**
     * 生成指定范围的随机数
     * @param min
     * @param max
     * @return
     */
    public static int randomInt(int min, int max) {
        Random rand = new Random();
        int randNumber = rand.nextInt(max - min + 1) + min;
        return randNumber;
    }

}
